
import Relay from "react-relay";
export default class saveProductionCensusMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { saveProductionCensus }`;
    }

    getVariables() {
        return {
            argsInput: {
                workShop:this.props.workShop,
                workGroup:this.props.workGroup,
                enterpriseId:this.props.enterpriseId,
                time:this.props.time,
                goodsJson:this.props.goodsJson,
                productionType: this.props.productionType,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on saveProductionCensusPayload  {
            saveProductionCensus {
                errorCode
                value
                totalResult
                id
                 
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on saveProductionCensusPayload  {
                    saveProductionCensus {
                        errorCode
                        value
                        totalResult
                        id
                         
                    }
                 }
            `]
        }];
    }

}
